Change the Screen Shot Save File Location in Mac OS X

Jan 26, 2011 - 101 Comments

Change where Mac saves screen shot files

By default, anytime you take a screen capture in Mac OS X, the resulting screenshot file will save to the current users desktop. This makes retrieval very easy and is very appropriate for the average Mac user, but for those who take a lot of screen shots in Mac OS, they may find their desktop to be cluttered with the screenshot files rather quickly.

An excellent solution is to adjust the default location of where Mac OS X saves captured screen shot files to another location in the file system when Command + Shift + 3 is pressed, this walkthrough will show you how to do that with a defaults command.

How to Change Where Screen Shots Save on Mac

You will need to use the command line to change the save location of screen shots in Mac OS X. Thus, the first thing you’ll need to do is launch the Terminal app from /Applications/Utilities/ to get a prompt.

The general syntax for changing screenshot file location is as follows, note it must be entered on a single line and with a proper path set for the new screencapture save location to take effect:

defaults write com.apple.screencapture location /path/;killall SystemUIServer

Change the ‘/path/’ sequence to where you want the screen shot files to save to. For example, if I want to have the screenshots appear in the user (~) Pictures folder, I would use:

defaults write com.apple.screencapture location ~/Pictures/

Hit the return key to set ~/Pictures as the location. You’ll need to follow it up with a SystemUIServer relaunch too:

killall SystemUIServer

Here is what this defaults sequence may look like as entered into the Terminals command line prompt:

Change the screen shot save file location in Mac OS X

Remember that ~ (tilde) is a shortcut to the current user home directory. A full path can be used as well, as we’ll discuss in a moment.

If you want to make a unique folder within the ~/Pictures/ directory to save your screen shots too, you can do that from the Finder as usual, or from the command line with the following command to create a directory named “Screenshots”:

mkdir ~/Pictures/Screenshots/

Now to set that new directory as the default saved location for captured screen images use the following syntax:

defaults write com.apple.screencapture location ~/Pictures/Screenshots/

For the changes to take effect without rebooting, kill SystemUIServer process to relaunch it and set the location:

killall SystemUIServer

That’s it, hit “Command+Shift+3” to take a screen shot and watch as the file is no longer saved to the user Desktop, but to the newly defined screen shot location.

This means the next time you take a screenshot (or as Windows converts like to say, Print Screen on a Mac), the screenshot file will appear at the location you specified.

Note that some users in the comments have experienced syntax issues when typing the tilde (~) as a shortcut for the Home folder, that shouldn’t be an issue if used properly, but nonetheless you can get around that by implying a full path to the home directory as follows:

defaults write com.apple.screencapture location /Users/USERNAME/Pictures/

Where “USERNAME” is the precise shortname of the users home directory, followed by the desired path to set as the save location for future screen captures. Again, one must killall SystemUIServer or log out and back in again for the change to take effect.

Changing Back to the Default Screen Shot File Save Location in Mac OS X

If you decide having screencaptures automatically saved to another location on the Mac is no longer what you’d like to do, you can always change the saved screenshot location back to the OS X default setting simply by specifying the desktop again in the aforementioned defaults command sequence. The default save location would thus be the following:

defaults write com.apple.screencapture location ~/Desktop/

Again, you’d need to kill SystemUIServer for changes to take effect.

killall SystemUIServer

You can again verify the change has been set back to the default by hitting Command+Shift+3 to capture the screen as a file in OS X, and look on the active user accounts desktop to find the screen shot file.

Screen shots default save location in Mac OS X can be changed

For many users, maintaining the Desktop as the default location of the screen shot files to generate is perfectly fine, this trick is really intended for individuals who use Command+Shift+3 for screen captures often and find the desktop file generation to be a distraction or otherwise difficult to manage. Users may also find useful to change the file name of generated screen shots as well as the image file type that is used, both of which can be widely customized to accommodate preferences.

This command works in all versions of Mac OS X.

.

Related articles:

Posted by: Manish Patel in Mac OS, Tips & Tricks

101 Comments

» Comments RSS Feed

  1. Gene says:

    How can I use an iCloud directory instead? Ideally iCloud Drive – Photos – Screenshots. Thanks!

  2. jf says:

    Thank you for this, my permissions got whacked after an Adobe Flash update and I had to reset to my specified folder.

    One trick I do that others might use, is I make an alias of the folder containing my screenshots, and then I rename the aliased folder something simple like “123”.

    Now when I want to get at my folder full of screenshots, I type command-space bar (for Spotlight) and then “123” (without the quote marks) and return, and you are right there with the folder.

    (Same thing for the default download folder – saves a lot of mousing around).

  3. Michael says:

    Are you sure this statement is necessary?

    killall SystemUIServer

    It seems like it is saving in the new location, and I didn’t just issue that.

  4. Nick says:

    Thanks for this! One additional step I like doing is dragging my newly created Screenshots folder from Finder onto the Dock, so that you can quickly find the file and drag it into your application of choice for sharing.

  5. Serjey says:

    It’s simple and works perfectly!
    Thank You!

  6. Alex says:

    Hi,

    Do you know if it is possible to set the new folder in other hard drive. I use a macbook with two hard disks, one SSD with the OSX and the Apps and one HDD ( changed the DvD ) for storage. When I set the new location on the SSD works great but if I try to set it on the HDD, the system reverts to desktop. I work a lot with screenshots and also it would be great for me being able to upload them directly to my OneDrive folder (located on the HDD)

    Thank you very much

  7. Hannah says:

    Use this code if oyu wont to change location to another volume (partition)

    defaults write com.apple.screencapture location ~/volumes/HardDisk/Website/images/

  8. Csilli says:

    Thank you, it worked perfectly well! :)

  9. Simona says:

    Hi,

    I’ve got a question – I successfully activated this functionality where all screen shots are stored in another folder. However my “temporary screenshot” functionality is disabled now – this is when you press CMD+FN+SHIFT+4 (normally, if you cmd+V you could paste that screen shot in another window).

    Can someone help me to get this functionality back?

    Thanks,
    Simona

  10. joe says:

    Thanx a lot mate…simple and clear instructions..

  11. RF says:

    Dude, you rock my OCD brain! Thanks.

  12. Kevin says:

    Do not use sudo! This will not work if you are root. Otherwise, works fine.

  13. Braulio says:

    I looked up a post from 2014-06-15 and their method didn’t work on Mac OS 10.11.4, but this one did and it was posted on 2011-01-26! Strange but I not complaining!

    • paul says:

      We update our posts to work in modern versions of OS X, it will absolutely work now in OS X El Capitan and beyond!

      • chris says:

        running capitain 10.11.5 on a new machine but none of these worked for me — saving to clipboard every time. my other machines don’t seem to be affected.

        • chris says:

          found the problem … went to my dropbox and unticked share screenshots to dropbox in the dropbox preferences import screen.
          working as it should now.

          • chris says:

            a point on the command lines…
            make sure the directory you want them in exists first
            then do your command line eg
            write com.apple.screencapture location ~/Pictures/Screenshots
            and then the
            killall SystemUIServer

  14. Ashu says:

    Thanks a lot for tip

  15. ed says:

    just switched to OS X, and this was a huge help. Thanks!

  16. Pete R says:

    Thanks! Worked perfectly. Enjoying my clutter free desktop!

  17. dd says:

    worked on el capitan. thanks man

  18. Chris R says:

    Wow, hundreds of lines of comments, rigamarole…yet no one asks why Apple couldn’t just provide a System Preferences interface to allow you to choose where to put Screenshots?

    Oh, I know, because we should ALL work exactly as Apple thinks we should and if you disagree, you are the problem.

  19. Rager says:

    CHEERS. Works like a charm. Thought this was never possible. :D

  20. Åsa says:

    Yay, you rock! Worked like a charm :-)

  21. doryq says:

    Thank you so much!!… It was so easy!… Thanks! :)

  22. TitanV8 says:

    Thank you so so much! Worked easily and very simple. THANK YOU.

  23. Vivian says:

    Directions worked perfectly. I love this site – so helpful!

  24. Prabhat says:

    Best One !

  25. Don Sparks says:

    Thanks. Worked great for Yosemite.

  26. Ane says:

    This works really well for cmd + shift + 3 but where do the screenshots go for the shift + cmd + ctrl + 4?

    • nt says:

      They go to the clipboard if you use Control as well, otherwise they go to the desktop or the location you specified with this command

  27. Robbb says:

    On Yosemite 10.10.2
    It worked BUT NOT when the save folder had a space in its name
    “1 1Screenshots”
    but did work when the save folder was called
    “0Screenshots”

    • roma says:

      You can use spaces in the screen shot destination folder. You’re not escaping the space in the destination folder name, escape it with a \ or put it in quotes. This is kind of geeky but basic unix knowledge, most people wouldn’t know it of course unless you live in the linux building like I once did.

  28. Adam says:

    VERY GOOD ADVICE-WORKS LIKE A CHARM

  29. Bas says:

    Can anyone confirm this works in OS X 10.10 Yosemite as well?

  30. Javster says:

    Not working on osx 10.9.5, I get this message:

    Rep argument is not a dictionary
    Defaults have not been changed

  31. Paul says:

    Ah… the folder on my Desktop is an alias to a shared folder I use for moving files among my several users (set up for testing). Apparently, you cannot specify an alias to a shared folder as the default screen capture location.

  32. Paul says:

    Hmm… not working in 10.9.5. I entered the commands in Terminal. No error message. Screen shots still showing up on Desktop.

    defaults write com.apple.screencapture location /Users/gina/Desktop/Swapping\ Files;killall SystemUIServer

    Tried quitting Terminal. No change. Tried logging out and back in. No change.

  33. Kaelan says:

    it says “-bash: defaults: command not found” Please Help ASAP?!?!?!

  34. Voz says:

    I take a lot of screenshots. This tip works great on OS X 10.9.3.

    Thanks!

  35. komrad says:

    This worked like a charm on OS X 10.9.3. Thanks for writing this.

  36. beemelle says:

    Awesome tip, works a charm – THANKS!

  37. herojig says:

    great tip, thx!

  38. hüseyin says:

    nice document, thank you.

  39. Marcia says:

    BTW, running Mavericks.

  40. Marcia says:

    Not working for me. The terminal will not save the code. Any code. I paste it in. Close the terminal window, open it back up. GONE!

    • Reado says:

      Read the instructions. You paste the code into the terminal, press ENTER to execute the command. It’s not supposed to be saved in the Terminal for the changes to take effect, it just executes once.

  41. Wesam Alalem says:

    Thank you, I hate cleaning up Desktop, changing path works better :)

  42. Rebecca says:

    Thank you! My desktop is a much happier place now. :)

    Works great in Mac OS X Version 10.6.8

    Sorry I don’t know if that’s Mountain Lion or Snow Leopard or Jungle Cat or whatever the fun name is ;)

  43. Chad Bambrick says:

    I have Mavericks, and it isn’t working; any suggestions (I know that my path is correct because I actually dragged the file into terminal and it automatically added the path)? Also, should I have the “~” before the path or not (its confusing the way it’s written in the instructions.

  44. ilan says:

    It works!!!!!!! thanks !!!!!

  45. Chett says:

    Perfect!! Thanks for the help, just made my lesson planning even faster!!!

  46. jamauai says:

    I noticed for Mountain Lion at least, you cannot specify the full path to a directory in your home folder (for example /Users/admin/Downloads/). It will not work. I tried killall SystemUIServer, killall Finder, log out and back in, still nothing. You must use the “~” syntax in order for it to work. Then killall SystemUIServer and it worked perfectly. Just a little FYI.

  47. KingTetroseWang says:

    Works very well. Tip: If you want to have the location in a folder on your desktop in Mt. Lion, put another / after the folder name to indicate you want it in a folder. E.g. ~/desktop/screenshots/

  48. Mag says:

    Brilliant!! Thanks a lot! :-)

  49. *m says:

    Works like a charm! Thanks!

  50. BK says:

    Thank you, this was great!

  51. Thanks for posting this.
    As of 10.8 , there is no need to restart the service.This applies automatically without service restart.

  52. Jonah says:

    Awesome! If you’re having trouble with a space in the file path, just leave it blank and drag your folder to the terminal window and OS X auto enters the path for you. Gotta love apple, Thanks for the Terminal codes here!

    • Marcus says:

      Dragging the folder into the Terminal window was very helpful trick. Wanted to copy screenshots to an NAS, and couldn’t get the pathname correct. By copying the folder to the Terminal window, it displayed the correct path to add into this syntax.
      Now screenshots are copying directly to the NAS and accessible from any device that has access to the NAS.
      Thks

  53. […] is to create a new folder in /Pictures/ or ~/Documents/ and then set that to the new default screen shot save location with a defaults write command: defaults write com.apple.screencapture location […]

  54. Hollie says:

    Works like a charm! Thanks!
    osx 10.8.2

  55. Barry says:

    Awesome, thanks :)

    What a time saver not having to clean up my desktop all the time ^^

  56. Liguo Kong says:

    Thanks. This helps a lot.

  57. ukscoob says:

    Easy to follow even for a n00b.
    Done in under 10 seconds.
    Tested & works.
    Thanks!

  58. Andras says:

    Thanks it helped a lot! Was getting annoyed about missed up desktop!

  59. Victor says:

    Another way is to use Onyx to do this… It has this feature in the Parameters section under the General tab and you can also change the format from PNG to JPG or a few other options… Just thought I’d mention it…

  60. Pook says:

    Yes, it works, but don’t put in that stupid tilde!

    • Maxwell says:

      The tilde represents the location of your user folder that you’re logged in with.

      ~/Pictures/Screenshots

      is the same as:

      /Users/youraccount/Pictures/Screenshots

  61. Donovan Meyers says:

    Fantastic, exactly what I was looking for!

    Here’s what I did, including cleanup:

    mkdir ~/Documents/screenshots
    defaults write com.apple.screencapture location ~/Documents/screenshots
    killall SystemUIServer
    mv ~/Desktop/Screen\ shot* ~/Documents/screenshots/

  62. Alex says:

    If you’re temped to run sudo, don’t. Just run defaults write etc.

    This is great btw. Thanks for the tip.

  63. TrueDee says:

    Just what I needed. Thanks!

  64. […] than changing file names, you can also change where screen shots save to and change file type to a format other than the PNG […]

  65. Dustin says:

    I have OSX lion, and it also worked great for me too! I’m stoked! Here’s my path with its own screen shots folder. I named the folder: Screen_Shots.

    defaults write com.apple.screencapture location ~/Pictures/Screen_Shots/

    THANK YOU!

  66. Laura says:

    Thanks for the tip, worked great! It was so annoying having them scattered all over the desktop.

  67. Bee says:

    I can take snapshots but they don’t appear on the desktop so I wanted to try to change the location so that I could find my snapshots in the future but I can’t find the program Terminal even though I know I had it. Also, my search tool or whatever doesn’t work either. I have the new Macbook with Snow Leopard (I think it is).

  68. Lguystillfly says:

    I have OSX Lion… and worked great for me. Have been wondering how to do this for a while now. Thanks! :)

  69. Ouriel Ohayon says:

    ok. copy pasting a comment i found in another forum. to make it work you need to follow this. instructions in the blog above are not enough…

    “You have to change the username (in caps below) and then the following needs to be consistent with the directory you want to use for the screen shots. Your user name is the user name of your computer which can be found by opening finder, click on “Macintosh HD” in the top left, then users and your user name should be the top folder. If you havent named it and you have an air, for example, it will just say “air”
    defaults write com.apple.screencapture location /Users/YOUR USER NAME GOES HERE/Desktop/printscreen/”

  70. Ouriel Ohayon says:

    does not work on OSX lion. someone managed?

  71. Alex says:

    I’m doing it and it doesn’t work! For some reason the computer is TAKING the shots and NOT saving them on the desktop and I don’t know WHERE it’s saving them or how to find them… very annoying… then I did all this and it doesn’t work for some reason. I’d like to show you snapshots of what I’m doing, but for obvious reasons can’t, haha…

    • Rob says:

      I would start by locating where the screenshots are being recorded. Do so by entering
      defaults read com.apple.screencapture location
      into terminal.
      Even if the post doesn’t seem to be working for you this should allow you to find your screenshots.

  72. Very convenient! I added a ‘Screenshots’ folder to the path so that it reads

    defaults write com.apple.screencapture location ~/Pictures/Screenshots/

    Easy! Thanks!

  73. This is really great. Cluttering up the Desktop with Screen Shots is really disruptive so changing the location is very helpful. Thank you so much for this tip.

  74. Manny C says:

    I just tried it and it worked… But only after I logged out and back in again. Your mileage may vary.

    • wizbang_FL says:

      Works in Mountain Lion as well. Noticed I had to close terminal after the kill command for the change to apply. Either that or there was a few minutes time delay.

  75. David says:

    I always wondered if there was a way to do this

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site